package com.bnz.service;

import com.bnz.entity.Classes;
import com.bnz.dao.ClassesMapper;
import com.bnz.service.ClassesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

// 注入spring容器
@Service
public class ClassesServiceImpl implements ClassesService {
    // 注入ClassesMapper
    @Autowired
    private ClassesMapper classesMapper;

    // 查询班级
    @Override
    public List<Classes> findALL() {
        return classesMapper.selectByExample(null); // 没用条件就是查询全部
    }
}
